<%@ page import="java.util.List" %>
<%@ page import="com.qq.model.User" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<label>用户名</label>
<input type="text" name="name" placeholder="请输入用户名">
<label>密码</label>
<input type="text" name="password" placeholder="请输入密码">
<hr>
<%
    List<User> userList = (List<User>)request.getAttribute("userList");
    for (User user:userList) {
        int id = user.getId();
        String name = user.getName();
        String password = user.getPassword();
        out.println("查询到的书籍为====》" + id + name + password+ "<br>");
    }
%>

</body>
</html>
